<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp" %>
 <!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<title>项目管理系统</title>
	
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	<link rel="stylesheet" type="text/css" href="css/loong.css">
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
</head>
<body class="body">
	
	<%@ include file="include/top.jsp" %>
	<!-- 头结束 -->
	
	<div class="container">
	  <div class="row row-inner">
		
		<%@ include file="include/left.jsp" %>
		<div class="span8">
			
			

			<a href="/upload.jspx" class="btn btn-inverse" style="float:right"><i class="icon-white  icon-share"></i>上传资料</a>
			<div class="clear"></div>
			
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">
					<i class="icon-th"></i>文件共享&gt;客户资料
				</li>
				
			</ul>
			<div class="wall">
				<table class="table table-striped">
					<thead>
						<tr>
							<th width="30px"></th>
							<th width="50%">名称</th>
							<th width="20%">大小</th>
							<th>创建人</th>
							<th></th>
						</tr>
					</thead>
					<tbody>
						<c:choose>
							<c:when test="${not empty requestScope.list }">
								<c:forEach var="item" items="${requestScope.list }">
									<tr>
										<td>
											<img src="img/file.png"/>
										</td>
										<td><a href="/download.jspx?id=${item.id }">${item.name }</a></td>
										<td>${item.filesize }kb</td>
										<td>${item.ename }</td>
										<td><a href="/deletefile.jspx?id=${item.id }"><i class="icon-trash"></i></a></td>
									</tr>
								</c:forEach>
							</c:when>
							<c:otherwise>
								<tr>
									<td colspan="4" ><h4>没有任何资料</h4></td>
								</tr>
							</c:otherwise>
						</c:choose>
						
					</tbody>
				</table>
				
				<a href="file.jspx">←返回</a>
			</div>
			
			
		</div>
	  </div>
	  <%@ include file="include/foot.jsp" %>
	</div>
</body>
</html>